package top.zlcode.common.core.constants;

public class CacheConstants {

    public final static String LOGIN_TOKEN_KEY = "logintoken:";

    public final static Long EXP = 720L; // 过期时间

    public final static Long USER_EXP = 10L; // 过期时间


    public static final Long REFRESH_TIME = 180L; // 刷新时间

    public final static String EMAIL_CODE_KEY = "e:c:"; // 发送邮箱验证码的 key

    public final static String CODE_COUNT_KEY = "c:c:"; // 当前验证码统计次数 key

    public final static String EXAM_UNFINISHED_LIST_KEY = "e:t:l"; // 未完赛竞赛列表

    public final static String EXAM_HISTORY_LIST_KEY = "e:h:l";  // 历史竞赛列表

    public final static String EXAM_DETAIL_KEY = "e:d:";    //竞赛详情信息

    public final static String USER_EXAM_LIST = "u:e:l:"; // 用户报名竞赛列表

    public final static String USER_DETAIL = "u:d:"; // 用户详情信息

    public static final String QUESTION_LIST = "q:l"; // 题目列表

    public static final String QUESTION_HOST_LIST = "q:h:l";

    public static final String EXAM_QUESTION_LIST = "e:q:l:";

    public static final String USER_MESSAGE_LIST = "u:m:l:";

    public static final String MESSAGE_DETAIL = "m:d:";

    public static final String EXAM_RANK_LIST = "e:r:l:";

    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;

    public static final String QUESTION_ANALYSIS_KEY = "q:a:"; // 题目解析 Key

    public static final String QUESTION_CODE_SUGGEST_KEY = "q:c:s:"; // 题目代码建议优化key

    public static final Long QUESTION_CODE_SUGGEST_EXPIRE_TIME = 7L; // 题目代码建议优化缓存过期时间

    public static final String USER_FAVORITE_QUESTION_KEY = "u:f:q:"; // 用户收藏题目 Key

    public static final Long FAVORITE_EXPIRE_TIME = 7L; // 收藏过期时间 7天(分钟)

}
